<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>V-for循环</title>
    <script src="js/vue.js"></script>
</head>
<body>

<div id="app">
<p v-for="a in arr">{{a}}</p>

    {{arr[2]}}

    <hr>
<!--    a为下标  v=值-->
    <p v-for="(v,a) in arr">{{a+1}} : {{v}}</p>


</div>

<script>
    new Vue({
        el:"#app",
        data:{
           arr:["qq","ww","ee"]
        }
    });
</script>
</body>
</html>